import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import permission from './modules/permission'
import tab from './modules/tab'
import error from './modules/error'
import layout from './modules/layout'
import getters from './getter'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    permission,
    tab,
    error,
    layout
  },
  getters
})
